package com.spm.dao;

import com.spm.pojo.Student;
import com.spm.pojo.StudentChooseCourse;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StudentMapper {

    int insertStudent(Student stu);

    int selectIdAndPassword(@Param("id")String sid,@Param("psw")String psw);

    int deleteSelectedCourse(@Param("tid")String tid,@Param("sid")String sid,@Param("cno")String cno);

    int insertSelectedCourse(@Param("tid") String tid,@Param("sid")String sid,@Param("cno")String cno);

    List<StudentChooseCourse> selectClassChooseStudentListByTnoAndCno(@Param("tid")String tid, @Param("cno")String cno);
}
